package com.wn.pojo;

import javax.validation.constraints.NotEmpty;

public class MedicalRecord {
    private Integer id;

    private Integer patientId;
    @NotEmpty(message = "药物过敏史不能为空")
    private String drugAllergyHistory;
    @NotEmpty(message = "遗传病史不能为空")
    private String geneticDisease;

    private Integer isDeleted;

    public MedicalRecord(Integer id, Integer patientId, String drugAllergyHistory, String geneticDisease, Integer isDeleted) {
        this.id = id;
        this.patientId = patientId;
        this.drugAllergyHistory = drugAllergyHistory;
        this.geneticDisease = geneticDisease;
        this.isDeleted = isDeleted;
    }

    public MedicalRecord() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public String getDrugAllergyHistory() {
        return drugAllergyHistory;
    }

    public void setDrugAllergyHistory(String drugAllergyHistory) {
        this.drugAllergyHistory = drugAllergyHistory == null ? null : drugAllergyHistory.trim();
    }

    public String getGeneticDisease() {
        return geneticDisease;
    }

    public void setGeneticDisease(String geneticDisease) {
        this.geneticDisease = geneticDisease == null ? null : geneticDisease.trim();
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
}